package com.my.study.config.hook.application;

import org.springframework.context.ApplicationEvent;

/**
 * 自定义一个事件
 *
 * @author: yidujun
 * @create: 2021/04/02 14:00
 */
public class NotifyEvent extends ApplicationEvent {

    private String email;
    private String content;

    public NotifyEvent(Object source) {
        super(source);
    }

    public NotifyEvent(Object source, String email, String content) {
        super(source);
        this.email = email;
        this.content = content;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "NotifyEvent{" +
                "email='" + email + '\'' +
                ", content='" + content + '\'' +
                '}';
    }
}
